Interview Questions and Answer
Options:
a. Accepts the request to install windows service from the windows service database
b. It supports a set of commands to execute
c. It is used to maintain the status information
d. All the above
Reveal Answer
Options:
a. These run on a separate Windows session
b. These generally start automatically when the computer boots
c. Do not have a UI but a Service console to start/stop/restart the service
d. All the above
Reveal Answer
Options:
a. Windows forms application have UserInterface where as the Windows service doesn’t have any UserInterface
b. A windows service cannot be executed using ctrl+F5
c. It is a background running application that run in their own Windows session.
d. All the above
Reveal Answer
Options:
a. Set Pause attribute to false
b. Set CanPauseAndContinue attribute to false
c. None of the above
Reveal Answer
Options:
a. when we get the message " The commit phase completed successfully"
b. when we get the message " Executed successfully"
c. when we get the message " Success"
d. Normal execution
Reveal Answer
Options:
a. ServiceController.ExecuteCommand(Int32);
b. ServiceController.Execute(CIntNumber.Text);
c. ServiceController.ExecuteCommand (Int32);
d. ServiceController.ExecuteCommand(CIntNumber.Integer);
Reveal Answer
Options:
a. 1 type: Win32ShareProcess
b. 2 types: Win32ShareProcess and Win32OwnProcess
c. 3 types: Win32ShareProcess, Win32OwnProcess and Win32Process
d. None
Reveal Answer
Options:
a. System boot
b. After logging in
c. Before logout
d. Before shutdown
Reveal Answer
Options:
a. uninstall.exe /u “Windows Service name”
b. install.exe /u “Windows Service name”
c. installUtil.exe /u “Windows Service name”
d. uninstallUtil.exe /u “Windows Service name”
Reveal Answer
Options:
a. Running
b. Paused
c. Stopped
d. Pending
e. All the above
Reveal Answer
Options:
a. Runs in its own service and started by Service Controller
b. Runs in its own service and started manually
c. Runs in other process
d. None
Reveal Answer
Options:
a. Services based on the class inherited from System.ServiceProcess.ServiceBase are overridden
b. Services based on the class inherited from System.ServiceProcess.ServiceBase are inherited
c. Services based on the class inherited from System..ServiceBase are overridden
d. None of the above
Reveal Answer
Options:
a. No, the service needs to be restarted to see the changes.
b. Yes, the changes reflect immediately when it is running
c. Services cannot be changed
d. It is not possible to change app.config
Reveal Answer
Options:
a. sc start servicepath
b. sc start ServiceName
c. start ServiceName
d. start ServicePath
Reveal Answer
Options:
a. sc stop servicepath
b. sc stop ServiceName
c. stop ServiceName
d. stop ServicePath
Reveal Answer
Options:
a. Using ServiceController.ServiceType property
b. Using ServiceController.ServiceHandle property
c. Using ServiceController.Status property
d. Using ServiceController.ServiceName property
Reveal Answer
Options:
a. ServiceBase.AutoLog
b. ServiceBase.Events
c. ServiceBase.Site
d. None of the above
Reveal Answer
Options:
a. Automatic
b. Manual
c. Disabled
d. All the above
Reveal Answer
Bestdotnet google plus